<html>
  <head>
    
    <!--Load Styles-->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="SHORTCUT ICON" href="{$BACKEND_IMAGES}/icons/x.png" type="image/x-icon"/>
    <link rel="stylesheet" href="{$BACKEND_CSS}struct.css"  rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="{$BACKEND_CSS}messages.css"  rel="stylesheet" type="text/css"/>
    
    <title>{if isset($page_title)} {$page_title} {/if}</title>
    
    <!--Develop css -->
    
    {foreach from=$css item=cssFile}
        <link href="{$BACKEND_CSS}{$cssFile}"               rel="stylesheet" type="text/css"/>
    {/foreach}
   
    
    <script src="{$EXTERNAL_JS}jquery/jquery/jquery-1.4.4.min.js"       type="text/javascript"></script> 
    
    <script src="{$EXTERNAL_JS}top_up/1.7.2/top_up-min.js"               type="text/javascript"></script>
    <script type="text/javascript">
      TopUp.images_path = "{$EXTERNAL_JS_RELATIVE}top_up/images/";
    </script> 
    <script src="{$BACKEND_JS}jquery.blockUI.js"                        type="text/javascript"></script>
    <script src="{$EXTERNAL_JS}jquery/jquery/jquery-ui-1.8.8.min.js"    type="text/javascript"></script>
   
    
    <script src="{$AJAX}JSON2.js"                         type="text/javascript"></script>
    <script src="{$AJAX}AJAXRequest.js"                   type="text/javascript"></script>
    
   
    <script src="{$BACKEND_JS}messages.js"                  type="text/javascript"></script>
    <script src="{$BACKEND_JS}main.js"                  type="text/javascript"></script>
   
    {foreach from=$js item=jsFile}
        <script src="{$BACKEND_JS}{$jsFile}"            type="text/javascript"></script>
    {/foreach}
    
  </head>
  <body>
      {if isset($block.header)}
        <div id="header">{$block.header}</div>
      {/if}
      <div id="container">
      
        {if isset($block.left)}
          <div id="leftBar"> {$block.left}</div>
        {/if}

        {if isset($block.content)}
          <div id="content">{$block.content}</div>
        {/if}
        
        {if isset($block.right)}
          <div id="rightBar"> {$block.right}</div>
        {/if}
        
      </div>
      
      {if isset($block.footer)}
        <div id="footer">{$block.footer}</div>
      {/if}

      {$xData}
  </body>
</html>